<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<jsp:include page="base/jscss.jsp"></jsp:include>
</head>
<body>

<h2>图书查询</h2>
    <p>Click the buttons on datagrid toolbar to do crud actions.</p>
    
    <table id="dg" title="My Users" class="easyui-datagrid" style="width:700px;height:500px"
            url="get_users.php"
            toolbar="#toolbar" pagination="true"
            rownumbers="true" fitColumns="true" singleSelect="true">
        <thead>
            <tr>
                <th field="firstname" width="50">名称</th>
                <th field="lastname" width="50">价格</th>
                <th field="phone" width="50">作者</th>
                <th field="email" width="50">出版社</th>
            </tr>
        </thead>
	<s:iterator value="bookList" >
        <thead>
            <tr>
                <th field="firstname" width="50"><s:property value="bookName" /> </th>
                <th field="lastname" width="50"><s:property value="bookPrice" /></th>
                <th field="phone" width="50"><s:property value="author" /></th>
                <th field="email" width="50"><s:property value="publisher" /></th>
            </tr>
        </thead>
	</s:iterator>
    </table>
    
    <style type="text/css">
        #fm{
            margin:0;
            padding:10px 30px;
        }
        .ftitle{
            font-size:14px;
            font-weight:bold;
            padding:5px 0;
            margin-bottom:10px;
            border-bottom:1px solid #ccc;
        }
        .fitem{
            margin-bottom:5px;
        }
        .fitem label{
            display:inline-block;
            width:80px;
        }
        .fitem input{
            width:160px;
        }
    </style>
 


</body>
</html>